{include file="common/common"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li class="active">栏目管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加栏目" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('cate/add')}'"> <i class="fa fa-plus"></i> Add
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <form action="" method="post">
                        <table class="table table-bordered table-hover">
                            <thead class="">
                            <tr>
                                <th class="text-center">ID</th>
                                <th class="text-center">栏目排序</th>
                                <th class="text-center">栏目名称</th>
                                <th class="text-center">栏目类型</th>
                                <th class="text-center">推荐</th>
                                <th class="text-center">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name='res' id='cate' offset="0"}
                            <tr>
                                <td align="center">{$cate.id}</td>
                                <td align="center"><input type="text" value="{$cate.sort}" style="width: 50px;text-align: center" name="{$cate.id}"></td>
                                <td>{neq name="$cate.level" value="0"}|{/neq}<?php echo str_repeat('-----',$cate['level'])?>{$cate.catename}</td>
                                <td align="center">
                                    {if condition="$cate.type eq 1"}
                                    列表栏目
                                    {elseif  condition="$cate.type eq 2"}
                                    单页栏目
                                    {else /}
                                    图片栏目
                                    {/if}
                                </td>
                                <td align="center">
                                    {if condition="$cate.rec" eq 1}是{else /}否{/if}
                                </td>
                                <td align="center">
                                    <a href="{:url('cate/edit',array('id'=>$cate['id']))}" class="btn btn-primary btn-sm shiny">
                                        <i class="fa fa-edit"></i> 编辑
                                    </a>
                                    <a href="#" onClick="warning('确实要删除吗', '{:url('cate/delete',array('id'=>$cate['id']))}')" class="btn btn-danger btn-sm shiny">
                                        <i class="fa fa-trash-o"></i> 删除
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                            <tr>
                                <td></td>
                                <td align="center"><input type="submit" class="btn btn-primary btn-sm shiny" value="排序" ></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>


                </div>
                <div style="margin-top: 20px;text-align: center">

                </div>

                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__static__/style/jquery_002.js"></script>
    <script src="__static__/style/bootstrap.js"></script>
    <script src="__static__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__static__/style/beyond.js"></script>
    


</body></html>